<!DOCTYPE html>
<html>
    <head>
        <link
                rel="stylesheet"
                type="text/css"
                href="ohosstudio.css">
        <script src="highlight.pack.js"></script>
        <style>
        </style>

        <title></title>
    </head>

    <body style="margin:0px ;padding:0px ;background:#282b2e; overflow:hidden; height:100%">
        <pre style="margin:0px ;padding-left:10px; height:0px" >
            <code
                    class="html"
                    id="pdiv">
            </code>
        </pre>
    </body>
    <script>
      var n_window = "object" == typeof window && window || "object" == typeof self && self;
      n_window.hljs.initHighlightingOnLoad();

      function callToApp() {
         if (window.JsCallbackToApp && window.JsCallbackToApp.call) {
                var result = window.JsCallbackToApp.call("message from web");

                var pdiv = document.getElementById("pdiv");
                pdiv.innerHTML = result ;
            }
         }
      callToApp();

    </script>
</html>